<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  <title>我的订单 - 社交商城</title>
  <!-- Bootstrap 5 CSS -->
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap/bootstrap.min.css" rel="stylesheet">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css">
  
  <style>
    /* 基础样式 */
    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      background-color: #f5f7fa;
      color: #333;
      margin: 0;
      padding-bottom: 15px;
    }
    
    /* 顶部导航 */
    .top-nav {
      height: 50px;
      background-color: #fff;
      border-bottom: 1px solid #eee;
      display: flex;
      align-items: center;
      padding: 0 15px;
      position: sticky;
      top: 0;
      z-index: 100;
    }
    
    .nav-title {
      font-size: 18px;
      font-weight: 600;
      margin: 0 auto;
    }
    
    .nav-btn {
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #666;
      text-decoration: none;
    }
    
    /* 样式切换器 */
    .style-switcher {
      background-color: #fff;
      padding: 10px 15px;
      border-bottom: 1px solid #eee;
    }
    
    .style-tabs {
      display: flex;
      gap: 8px;
      overflow-x: auto;
      padding-bottom: 5px;
    }
    
    .style-tabs::-webkit-scrollbar {
      display: none;
    }
    
    .style-tab {
      padding: 6px 14px;
      background-color: #f5f7fa;
      border-radius: 20px;
      font-size: 14px;
      white-space: nowrap;
      cursor: pointer;
    }
    
    .style-tab.active {
      background-color: #ff4d4f;
      color: white;
    }
    
    /* 订单状态筛选 */
    .order-filter {
      background-color: #fff;
      padding: 10px 0;
      border-bottom: 1px solid #eee;
    }
    
    .filter-tabs {
      display: flex;
      justify-content: space-around;
      padding: 0 5px;
    }
    
    .filter-tab {
      flex: 1;
      text-align: center;
      padding: 5px 0;
      font-size: 14px;
      color: #666;
      position: relative;
    }
    
    .filter-tab.active {
      color: #ff4d4f;
      font-weight: 500;
    }
    
    .filter-tab.active::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 20px;
      height: 2px;
      background-color: #ff4d4f;
      border-radius: 1px;
    }
    
    .filter-badge {
      position: absolute;
      top: -2px;
      right: 30%;
      background-color: #ff4d4f;
      color: white;
      font-size: 10px;
      width: 16px;
      height: 16px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    /* 通用订单页面样式 */
    .orders-page {
      display: none;
    }
    
    .orders-page.active {
      display: block;
    }
    
    /* 订单列表容器 */
    .orders-container {
      padding: 10px;
    }
    
    /* 订单项基础样式 */
    .order-item {
      background-color: #fff;
      border-radius: 8px;
      margin-bottom: 10px;
      overflow: hidden;
      box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }
    
    /* 订单头部 */
    .order-header {
      padding: 12px 15px;
      border-bottom: 1px solid #f5f5f5;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    
    .order-shop {
      font-weight: 500;
    }
    
    .order-status {
      font-size: 14px;
      font-weight: 500;
    }
    
    .status-pending {
      color: #faad14;
    }
    
    .status-paid {
      color: #1890ff;
    }
    
    .status-shipped {
      color: #722ed1;
    }
    
    .status-completed {
      color: #52c41a;
    }
    
    .status-canceled {
      color: #8c8c8c;
    }
    
    /* 订单商品列表 */
    .order-products {
      padding: 10px 15px;
    }
    
    .order-product {
      display: flex;
      padding: 8px 0;
      border-bottom: 1px solid #f5f5f5;
    }
    
    .order-product:last-child {
      border-bottom: none;
    }
    
    .product-image {
      width: 60px;
      height: 60px;
      border-radius: 4px;
      overflow: hidden;
      margin-right: 10px;
      flex-shrink: 0;
    }
    
    .product-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    
    .product-info {
      flex: 1;
      min-width: 0;
    }
    
    .product-name {
      font-size: 14px;
      line-height: 1.3;
      margin-bottom: 5px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    
    .product-spec {
      font-size: 12px;
      color: #999;
      margin-bottom: 3px;
    }
    
    .product-price {
      font-size: 14px;
      color: #ff4d4f;
      font-weight: 500;
    }
    
    .product-quantity {
      font-size: 12px;
      color: #999;
    }
    
    /* 订单金额信息 */
    .order-amount {
      padding: 10px 15px;
      text-align: right;
      border-top: 1px solid #f5f5f5;
    }
    
    .amount-text {
      font-size: 14px;
      color: #666;
      margin-bottom: 5px;
    }
    
    .amount-value {
      font-size: 15px;
      color: #ff4d4f;
      font-weight: 600;
    }
    
    /* 订单操作按钮 */
    .order-actions {
      padding: 10px 15px;
      display: flex;
      justify-content: flex-end;
      gap: 10px;
      border-top: 1px solid #f5f5f5;
    }
    
    .order-btn {
      padding: 5px 15px;
      border-radius: 4px;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
    }
    
    .btn-secondary {
      background-color: #f5f5f5;
      color: #666;
      border: 1px solid #eee;
    }
    
    .btn-primary {
      background-color: #ff4d4f;
      color: white;
      border: 1px solid #ff4d4f;
    }
    
    /* 订单时间与编号 */
    .order-meta {
      font-size: 12px;
      color: #999;
      padding: 8px 15px;
      border-bottom: 1px solid #f5f5f5;
    }
    
    /* 样式1 - 标准布局 */
    .standard-orders .order-header {
      background-color: #fff8f0;
    }
    
    .standard-orders .order-product {
      align-items: center;
    }
    
    .standard-orders .product-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    
    /* 样式2 - 简约布局 */
    .simple-orders .order-item {
      border-radius: 0;
      box-shadow: none;
      border-bottom: 1px solid #eee;
      margin-bottom: 0;
    }
    
    .simple-orders .order-header {
      padding: 10px 15px;
    }
    
    .simple-orders .order-product {
      padding: 6px 0;
    }
    
    .simple-orders .order-amount {
      padding: 8px 15px;
    }
    
    .simple-orders .order-actions {
      padding: 8px 15px;
    }
    
    .simple-orders .order-btn {
      padding: 4px 12px;
      font-size: 13px;
    }
    
    /* 样式3 - 卡片布局 */
    .card-orders .order-item {
      border-radius: 12px;
      overflow: hidden;
      border: 1px solid #f0f0f0;
    }
    
    .card-orders .order-status {
      padding: 3px 8px;
      border-radius: 4px;
      font-size: 13px;
    }
    
    .card-orders .status-pending {
      background-color: #fff7e6;
    }
    
    .card-orders .status-paid {
      background-color: #e6f7ff;
    }
    
    .card-orders .status-shipped {
      background-color: #f9f0ff;
    }
    
    .card-orders .status-completed {
      background-color: #f6ffed;
    }
    
    .card-orders .order-product {
      padding: 12px 0;
    }
    
    .card-orders .product-image {
      width: 70px;
      height: 70px;
    }
    
    .card-orders .order-actions {
      padding: 12px 15px;
    }
    
    /* 样式4 - 详情布局 */
    .detail-orders .order-tracking {
      padding: 10px 15px;
      background-color: #fff0f0;
      border-bottom: 1px solid #f5f5f5;
      font-size: 13px;
      color: #ff4d4f;
    }
    
    .detail-orders .order-shipping {
      padding: 10px 15px;
      border-bottom: 1px solid #f5f5f5;
      font-size: 13px;
    }
    
    .shipping-address {
      color: #333;
      margin-top: 5px;
      line-height: 1.4;
    }
    
    .detail-orders .order-summary {
      padding: 10px 15px;
      background-color: #fafafa;
      border-bottom: 1px solid #f5f5f5;
    }
    
    .summary-item {
      display: flex;
      justify-content: space-between;
      font-size: 13px;
      margin-bottom: 5px;
    }
    
    .summary-item:last-child {
      margin-bottom: 0;
      font-weight: 500;
    }
    
    .summary-label {
      color: #666;
    }
    
    /* 提示框 */
    .toast {
      position: fixed;
      bottom: 20px;
      left: 50%;
      transform: translateX(-50%);
      background-color: rgba(0,0,0,0.8);
      color: white;
      border-radius: 8px;
      padding: 10px 15px;
      font-size: 14px;
      z-index: 1000;
      display: none;
    }
  </style>
</head>
<body>
  <!-- 提示框 -->
  <div class="toast" id="toast"></div>
  
  <!-- 顶部导航 -->
  <nav class="top-nav">
    <a href="#" class="nav-btn" id="backBtn">
      <i class="fa fa-angle-left"></i>
    </a>
    <h1 class="nav-title">我的订单</h1>
    <a href="#" class="nav-btn" id="searchBtn">
      <i class="fa fa-search"></i>
    </a>
  </nav>
  
  <!-- 样式切换器 -->
  <div class="style-switcher">
    <div class="style-tabs">
      <div class="style-tab active" data-style="standard">标准布局</div>
      <div class="style-tab" data-style="simple">简约布局</div>
      <div class="style-tab" data-style="card">卡片布局</div>
      <div class="style-tab" data-style="detail">详情布局</div>
    </div>
  </div>
  
  <!-- 订单状态筛选 -->
  <div class="order-filter">
    <div class="filter-tabs">
      <div class="filter-tab active">全部</div>
      <div class="filter-tab">待付款 <span class="filter-badge">2</span></div>
      <div class="filter-tab">待发货</div>
      <div class="filter-tab">待收货 <span class="filter-badge">1</span></div>
      <div class="filter-tab">已完成</div>
    </div>
  </div>
  
  <!-- 样式1 - 标准布局 -->
  <div class="orders-page active standard-orders" id="standard">
    <div class="orders-container">
      <!-- 订单1 - 待付款 -->
      <div class="order-item">
        <div class="order-header">
          <div class="order-shop">潮流服饰旗舰店</div>
          <div class="order-status status-pending">待付款</div>
        </div>
        
        <div class="order-meta">
          订单编号: 2023102812345678 | 下单时间: 2023-10-28 15:30
        </div>
        
        <div class="order-products">
          <div class="order-product">
            <div class="product-image">
              <img src="https://picsum.photos/id/21/200/200" alt="商品图片">
            </div>
            <div class="product-info">
              <div class="product-name">夏季纯棉短袖T恤 男女同款宽松休闲上衣</div>
              <div class="product-spec">颜色：白色 | 尺码：M</div>
              <div class="product-footer">
                <div class="product-price">¥59</div>
                <div class="product-quantity">x1</div>
              </div>
            </div>
          </div>
          
          <div class="order-product">
            <div class="product-image">
              <img src="https://picsum.photos/id/22/200/200" alt="商品图片">
            </div>
            <div class="product-info">
              <div class="product-name">潮流牛仔裤 修身直筒长裤 百搭休闲裤</div>
              <div class="product-spec">颜色：蓝色 | 尺码：30</div>
              <div class="product-footer">
                <div class="product-price">¥129</div>
                <div class="product-quantity">x1</div>
              </div>
            </div>
          </div>
        </div>
        
        <div class="order-amount">
          <div class="amount-text">共2件商品 合计</div>
          <div class="amount-value">¥188 <span style="font-size:12px;color:#999;font-weight:normal;">(含运费¥10)</span></div>
        </div>
        
        <div class="order-actions">
          <button class="order-btn btn-secondary" onclick="showToast('订单已取消')">取消订单</button>
          <button class="order-btn btn-primary" onclick="showToast('前往支付')">去付款</button>
        </div>
      </div>
      
      <!-- 订单2 - 待收货 -->
      <div class="order-item">
        <div class="order-header">
          <div class="order-shop">数码配件专营店</div>
          <div class="order-status status-shipped">已发货</div>
        </div>
        
        <div class="order-meta">
          订单编号: 2023102787654321 | 下单时间: 2023-10-27 09:15
        </div>
        
        <div class="order-products">
          <div class="order-product">
            <div class="product-image">
              <img src="https://picsum.photos/id/23/200/200" alt="商品图片">
            </div>
            <div class="product-info">
              <div class="product-name">无线蓝牙耳机 运动跑步降噪耳机 长续航</div>
              <div class="product-spec">颜色：黑色</div>
              <div class="product-footer">
                <div class="product-price">¥199</div>
                <div class="product-quantity">x1</div>
              </div>
            </div>
          </div>
        </div>
        
        <div class="order-amount">
          <div class="amount-text">共1件商品 合计</div>
          <div class="amount-value">¥199 <span style="font-size:12px;color:#999;font-weight:normal;">(免运费)</span></div>
        </div>
        
        <div class="order-actions">
          <button class="order-btn btn-secondary" onclick="showToast('已联系客服')">联系客服</button>
          <button class="order-btn btn-primary" onclick="showToast('确认收货')">确认收货</button>
        </div>
      </div>
    </div>
  </div>
  
  <!-- 样式2 - 简约布局 -->
  <div class="orders-page simple-orders" id="simple">
    <div class="orders-container">
      <!-- 订单1 - 待付款 -->
      <div class="order-item">
        <div class="order-header">
          <div class="order-shop">潮流服饰旗舰店</div>
          <div class="order-status status-pending">待付款</div>
        </div>
        
        <div class="order-products">
          <div class="order-product">
            <div class="product-image">
              <img src="https://picsum.photos/id/21/200/200" alt="商品图片">
            </div>
            <div class="product-info">
              <div class="product-name">夏季纯棉短袖T恤</div>
              <div class="product-spec">白色 | M</div>
              <div class="product-price">¥59 x1</div>
            </div>
          </div>
          
          <div class="order-product">
            <div class="product-image">
              <img src="https://picsum.photos/id/22/200/200" alt="商品图片">
            </div>
            <div class="product-info">
              <div class="product-name">潮流牛仔裤</div>
              <div class="product-spec">蓝色 | 30</div>
              <div class="product-price">¥129 x1</div>
            </div>
          </div>
        </div>
        
        <div class="order-amount">
          <div class="amount-value">合计: ¥188</div>
        </div>
        
        <div class="order-actions">
          <button class="order-btn btn-secondary" onclick="showToast('订单已取消')">取消</button>
          <button class="order-btn btn-primary" onclick="showToast('前往支付')">付款</button>
        </div>
      </div>
      
      <!-- 订单2 - 待收货 -->
      <div class="order-item">
        <div class="order-header">
          <div class="order-shop">数码配件专营店</div>
          <div class="order-status status-shipped">已发货</div>
        </div>
        
        <div class="order-products">
          <div class="order-product">
            <div class="product-image">
              <img src="https://picsum.photos/id/23/200/200" alt="商品图片">
            </div>
            <div class="product-info">
              <div class="product-name">无线蓝牙耳机</div>
              <div class="product-spec">黑色</div>
              <div class="product-price">¥199 x1</div>
            </div>
          </div>
        </div>
        
        <div class="order-amount">
          <div class="amount-value">合计: ¥199</div>
        </div>
        
        <div class="order-actions">
          <button class="order-btn btn-secondary" onclick="showToast('已联系客服')">客服</button>
          <button class="order-btn btn-primary" onclick="showToast('确认收货')">确认</button>
        </div>
      </div>
    </div>
  </div>
  
  <!-- 样式3 - 卡片布局 -->
  <div class="orders-page card-orders" id="card">
    <div class="orders-container">
      <!-- 订单1 - 待付款 -->
      <div class="order-item">
        <div class="order-header">
          <div class="order-shop">潮流服饰旗舰店</div>
          <div class="order-status status-pending">待付款</div>
        </div>
        
        <div class="order-meta">
          订单编号: 2023102812345678 | 2023-10-28
        </div>
        
        <div class="order-products">
          <div class="order-product">
            <div class="product-image">
              <img src="https://picsum.photos/id/21/200/200" alt="商品图片">
            </div>
            <div class="product-info">
              <div class="product-name">夏季纯棉短袖T恤 男女同款宽松休闲上衣</div>
              <div class="product-spec">颜色：白色 | 尺码：M</div>
              <div style="display: flex; justify-content: space-between; margin-top: 8px;">
                <div class="product-price">¥59</div>
                <div class="product-quantity">x1</div>
              </div>
            </div>
          </div>
          
          <div class="order-product">
            <div class="product-image">
              <img src="https://picsum.photos/id/22/200/200" alt="商品图片">
            </div>
            <div class="product-info">
              <div class="product-name">潮流牛仔裤 修身直筒长裤 百搭休闲裤</div>
              <div class="product-spec">颜色：蓝色 | 尺码：30</div>
              <div style="display: flex; justify-content: space-between; margin-top: 8px;">
                <div class="product-price">¥129</div>
                <div class="product-quantity">x1</div>
              </div>
            </div>
          </div>
        </div>
        
        <div class="order-amount">
          <div class="amount-value">总计: ¥188</div>
        </div>
        
        <div class="order-actions">
          <button class="order-btn btn-secondary" onclick="showToast('订单已取消')">取消订单</button>
          <button class="order-btn btn-primary" onclick="showToast('前往支付')">去付款</button>
        </div>
      </div>
      
      <!-- 订单2 - 待收货 -->
      <div class="order-item">
        <div class="order-header">
          <div class="order-shop">数码配件专营店</div>
          <div class="order-status status-shipped">已发货</div>
        </div>
        
        <div class="order-meta">
          订单编号: 2023102787654321 | 2023-10-27
        </div>
        
        <div class="order-products">
          <div class="order-product">
            <div class="product-image">
              <img src="https://picsum.photos/id/23/200/200" alt="商品图片">
            </div>
            <div class="product-info">
              <div class="product-name">无线蓝牙耳机 运动跑步降噪耳机 长续航</div>
              <div class="product-spec">颜色：黑色</div>
              <div style="display: flex; justify-content: space-between; margin-top: 8px;">
                <div class="product-price">¥199</div>
                <div class="product-quantity">x1</div>
              </div>
            </div>
          </div>
        </div>
        
        <div class="order-amount">
          <div class="amount-value">总计: ¥199</div>
        </div>
        
        <div class="order-actions">
          <button class="order-btn btn-secondary" onclick="showToast('已联系客服')">联系客服</button>
          <button class="order-btn btn-primary" onclick="showToast('确认收货')">确认收货</button>
        </div>
      </div>
    </div>
  </div>
  
  <!-- 样式4 - 详情布局 -->
  <div class="orders-page detail-orders" id="detail">
    <div class="orders-container">
      <!-- 订单1 - 待付款 -->
      <div class="order-item">
        <div class="order-header">
          <div class="order-shop">潮流服饰旗舰店</div>
          <div class="order-status status-pending">待付款</div>
        </div>
        
        <div class="order-meta">
          订单编号: 2023102812345678 | 下单时间: 2023-10-28 15:30 | 剩余支付时间: 18:25
        </div>
        
        <div class="order-shipping">
          <div>收货信息</div>
          <div class="shipping-address">
            张先生 138****6789<br>
            北京市朝阳区XX街道XX小区X号楼X单元XXX 邮编:100000
          </div>
        </div>
        
        <div class="order-products">
          <div class="order-product">
            <div class="product-image">
              <img src="https://picsum.photos/id/21/200/200" alt="商品图片">
            </div>
            <div class="product-info">
              <div class="product-name">夏季纯棉短袖T恤 男女同款宽松休闲上衣</div>
              <div class="product-spec">颜色：白色 | 尺码：M</div>
              <div style="display: flex; justify-content: space-between; margin-top: 5px;">
                <div class="product-price">¥59</div>
                <div class="product-quantity">x1</div>
              </div>
            </div>
          </div>
          
          <div class="order-product">
            <div class="product-image">
              <img src="https://picsum.photos/id/22/200/200" alt="商品图片">
            </div>
            <div class="product-info">
              <div class="product-name">潮流牛仔裤 修身直筒长裤 百搭休闲裤</div>
              <div class="product-spec">颜色：蓝色 | 尺码：30</div>
              <div style="display: flex; justify-content: space-between; margin-top: 5px;">
                <div class="product-price">¥129</div>
                <div class="product-quantity">x1</div>
              </div>
            </div>
          </div>
        </div>
        
        <div class="order-summary">
          <div class="summary-item">
            <div class="summary-label">商品总价</div>
            <div>¥188</div>
          </div>
          <div class="summary-item">
            <div class="summary-label">运费</div>
            <div>¥10</div>
          </div>
          <div class="summary-item">
            <div class="summary-label">店铺优惠</div>
            <div>-¥10</div>
          </div>
          <div class="summary-item">
            <div class="summary-label">实付款</div>
            <div class="amount-value">¥188</div>
          </div>
        </div>
        
        <div class="order-actions">
          <button class="order-btn btn-secondary" onclick="showToast('订单已取消')">取消订单</button>
          <button class="order-btn btn-primary" onclick="showToast('前往支付')">去付款</button>
        </div>
      </div>
      
      <!-- 订单2 - 待收货 -->
      <div class="order-item">
        <div class="order-header">
          <div class="order-shop">数码配件专营店</div>
          <div class="order-status status-shipped">已发货</div>
        </div>
        
        <div class="order-meta">
          订单编号: 2023102787654321 | 下单时间: 2023-10-27 09:15
        </div>
        
        <div class="order-tracking">
          <i class="fa fa-truck"></i> 快递: 顺丰速运(789456123000) | 正在派送中
        </div>
        
        <div class="order-shipping">
          <div>收货信息</div>
          <div class="shipping-address">
            张先生 138****6789<br>
            北京市朝阳区XX街道XX小区X号楼X单元XXX 邮编:100000
          </div>
        </div>
        
        <div class="order-products">
          <div class="order-product">
            <div class="product-image">
              <img src="https://picsum.photos/id/23/200/200" alt="商品图片">
            </div>
            <div class="product-info">
              <div class="product-name">无线蓝牙耳机 运动跑步降噪耳机 长续航</div>
              <div class="product-spec">颜色：黑色</div>
              <div style="display: flex; justify-content: space-between; margin-top: 5px;">
                <div class="product-price">¥199</div>
                <div class="product-quantity">x1</div>
              </div>
            </div>
          </div>
        </div>
        
        <div class="order-summary">
          <div class="summary-item">
            <div class="summary-label">商品总价</div>
            <div>¥199</div>
          </div>
          <div class="summary-item">
            <div class="summary-label">运费</div>
            <div>¥0</div>
          </div>
          <div class="summary-item">
            <div class="summary-label">优惠券</div>
            <div>-¥30</div>
          </div>
          <div class="summary-item">
            <div class="summary-label">实付款</div>
            <div class="amount-value">¥169</div>
          </div>
        </div>
        
        <div class="order-actions">
          <button class="order-btn btn-secondary" onclick="showToast('已联系客服')">联系客服</button>
          <button class="order-btn btn-primary" onclick="showToast('确认收货')">确认收货</button>
        </div>
      </div>
    </div>
  </div>
  
  <!-- Bootstrap JS -->
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
  
  <script>
    // 获取元素
    const styleTabs = document.querySelectorAll('.style-tab');
    const ordersPages = document.querySelectorAll('.orders-page');
    const filterTabs = document.querySelectorAll('.filter-tab');
    const backBtn = document.getElementById('backBtn');
    const searchBtn = document.getElementById('searchBtn');
    const toast = document.getElementById('toast');
    
    // 样式切换
    styleTabs.forEach(tab => {
      tab.addEventListener('click', function() {
        // 移除所有激活状态
        styleTabs.forEach(t => t.classList.remove('active'));
        ordersPages.forEach(page => page.classList.remove('active'));
        
        // 设置当前激活状态
        this.classList.add('active');
        const style = this.getAttribute('data-style');
        document.getElementById(style).classList.add('active');
        
        showToast(`已切换到${this.textContent}`);
      });
    });
    
    // 筛选切换
    filterTabs.forEach(tab => {
      tab.addEventListener('click', function() {
        // 移除所有激活状态
        filterTabs.forEach(t => t.classList.remove('active'));
        
        // 设置当前激活状态
        this.classList.add('active');
        showToast(`已切换到${this.textContent}订单`);
      });
    });
    
    // 返回按钮
    backBtn.addEventListener('click', function() {
      showToast('返回个人中心');
    });
    
    // 搜索按钮
    searchBtn.addEventListener('click', function() {
      showToast('搜索订单');
    });
    
    // 显示提示
    function showToast(message) {
      toast.textContent = message;
      toast.style.display = 'block';
      
      setTimeout(() => {
        toast.style.opacity = '0';
        setTimeout(() => {
          toast.style.display = 'none';
          toast.style.opacity = '1';
        }, 300);
      }, 2000);
    }
  </script>
</body>
</html>
